﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Activities;
using System.Activities.Statements;

namespace Perseus.WorkFlow.Biz.Basic
{
    public class HelloWorkflow : Activity
    {
        private string flowName;
        
        public HelloWorkflow()
        {
            this.Implementation = () => new Sequence
            {
                Activities = {
                    new WriteLine() { Text = "Hellow Workflow" }
                }
            };
        }

        public HelloWorkflow(string name)
        {
            this.flowName = name;

            this.Implementation = () => new Sequence
            {
                Activities = {
                    new WriteLine() { Text = "Hello " + flowName }
                }
            };
        }
    }
}
